package com.lbw.factory.factorymethod.order;

import com.lbw.factory.factorymethod.pizza.LDCheesePizza;
import com.lbw.factory.factorymethod.pizza.LDPepperPizza;
import com.lbw.factory.factorymethod.pizza.Pizza;

/**
 * @author lbw
 * @version 1.0
 * @date 2021/10/15 20:21
 */
public class LDOrderPizza extends OrderPizza {
    @Override
    Pizza createPizza(String orderType) {
        Pizza pizza = null;

        switch (orderType) {
            case "cheese":
                pizza = new LDCheesePizza();
                break;
            case "pepper":
                pizza = new LDPepperPizza();
                break;
        }


        return pizza;
    }
}
